public class Test {
    public static void main(String[] args) {
        int a = 9;
        int sum = 0;
        while (a <= 100){
            if (a % 10 == 9){
                sum++;
                a++;
            }else {
                a++;
            }
        }
        System.out.println(sum);
    }
}
